﻿<?php

if(isset($_REQUEST['id']) == true)
{   
    $MaDDH = $_REQUEST['id'];
    include("./code/DataProvider.php");
    $query = " DELETE FROM DonDatHang WHERE MaDDH ='".$MaDDH."' ";
    $result = DataProvider::executeQuery($query);
    
    echo '<script type="text/javascript">';
    echo 'alert("Xóa đơn đặt hàng thành công !!!");';
    echo 'location="admin.php?act=14"';
    echo '</script>';
}
else
    echo '<script type="text/javascript">';
    echo 'location="admin.php?act=14"';
    echo '</script>';

?>